package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface AliService {

    @POST("/user/alipayUrl")
    Call<CommonResult> getAlipayUrl(@Body Object body);

    @POST("/user/alipayValidateSign")
    Call<CommonResult> alipayValidateSign(@Body Object body);

    @POST("/user/getRechargeRecord")
    Call<CommonResult> getRechargeRecord(@Body Object body);

    //获取充值详情
    @POST("/user/getRecharge")
    Call<CommonResult> getRecharge(@Body String rechargeId);

    @POST("/user/getAuthUrl")
    Call<CommonResult> getAuthUrl(@Body Object body);

    /**
     * 支付宝授权登录
     *
     * @param body
     * @return
     */
    @POST("/user/aliAuthLogin")
//     @Headers("Encrypt:1")//加上这个header数据是不加密上传
    Call<CommonResult> aliAuthLogin(@Body Object body);


    @POST("/user/bindAliPay")
    Call<CommonResult> bindAliPay(@Body Object bdoy);

    /**
     * 提现申请
     *
     * @param body
     * @return
     */
    @POST("/user/transfer")
    Call<CommonResult> transfer(@Body Object body);

    @POST("/user/get_transfer_info")
    Call<CommonResult> getTransferInfo(@Body Object body);

    @POST("/user/get_transfer_record")
    Call<CommonResult> getTransferRecord(@Body Object body);


    /**
     * 提现成功
     *
     * @param body
     * @return
     */
    @POST("/user/transferSuccess")
    Call<CommonResult> transferSuccess(@Body Object body);

    /**
     * 提现失败
     *
     * @param body
     * @return
     */
    @POST("/user/transferError")
    Call<CommonResult> transferError(@Body Object body);


    /**
     * 发红包获取请求链接
     *
     * @param body
     * @return
     */
    @POST("/user/getCouponUrl")
    Call<CommonResult> getCouponUrl(@Body Object body);

    /**
     * 发红包，同步验证签名
     *
     * @param body
     * @return
     */
    @POST("/user/aliCouponValidateSign")
    Call<CommonResult> aliCouponValidateSign(@Body Object body);

    @POST("/user/receiveFundCoupon")
    Call<CommonResult> receiveFundCoupon(@Body Object body);


}
